﻿using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Domain.Models
{
    [DisplayName("权限")]
    public class Permission : BaseEntity
    {
        [DisplayName("编号")]
        public int Id { get; set; }

        [DisplayName("名称")]
        [StringLength(200)]
        public string Name { get; set; }

        [DisplayName("权限菜单")]
        public virtual ICollection<PermissionNavigation> PermissionNavigations { get; set; } = new List<PermissionNavigation>();
    }
}
